package com.zhuang.chapter16.work01;

public class SaveMoney1 implements Runnable {

	private BankCard card;

	public SaveMoney1(BankCard card) {
		super();
		this.card = card;
	}

	@Override
	public void run() {
		card.setBalance(card.getBalance() + 100);
		System.out.println(Thread.currentThread().getName() + "存了100元，余额是：" + card.getBalance());
	}
}
